package com.dengqi.mymodule.fragment;


import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

/**
 * Created by dell on 2018/6/15
 */

public abstract class BaseFragment extends Fragment {

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        Log.e("---", "onCreateView");
        return null;
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
    }

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Log.e("---", "onCreate");
    }

    @Override
    public void onResume() {
        super.onResume();
        Log.e("---", "onResume");
    }

    @Override
    public void onStart() {
        super.onStart();
        Log.e("---", "onStart");
    }

    @Override
    public void onPause() {
        super.onPause();
        Log.e("---", "onPause");
    }

    @Override
    public void onStop() {
        super.onStop();
        Log.e("---", "onStop");
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        Log.e("---", "onDestroyView");
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        Log.e("---", "onDestroy");
    }

    @Override
    public void onAttach(Context context) {
        super.onAttach(context);
        Log.e("---", "onAttach");
    }

    @Override
    public void onAttach(Activity activity) {
        super.onAttach(activity);
        Log.e("---", "onAttach2");
    }

    @Override
    public void onDetach() {
        super.onDetach();
        Log.e("---", "onDetach");
    }

}
